# coding=utf-8

import web

from hooks import load_hook, unload_hook
from controllers.admin import app_admin

urls = (
    # === 猫优 ===
    # 推荐猫优
    '/actress/make', 'controllers.actress.views.make',
    # === 用户 ===
    # 登录
    '/login', 'controllers.users.views.login',
    # 首页
    '[/]*', 'controllers.views.index',
    
    # 后台管理
    '/admin', app_admin,
)

maocos = web.application(urls, locals())
# processor
maocos.add_processor( web.loadhook( load_hook ) )
maocos.add_processor( web.unloadhook( unload_hook ) )

